import requests
# import json

"""
字典转json方法
data = {'key1': '1', 'key2': '2'}
data = json.dumps(data)
"""

url = 'http://www.ayjxjy.com/tools/submit_ajax.ashx?action=user_login'

data = {'txtUserName': '410521198102078039', 'txtPassword': '078','chkRemember': 'undefined'}
r = requests.post(url, data=data)  # 使用data携带参数

r.status_code
